The fetch command

You use the fetch command to fetch information about documents from the web, without changing the display. If the information you requested doesn't exist, the return code is 5. Currently, only HTML documents can be fetched!

Template: item/a,stem,url/k,index/k/f,map/k/f,form/k/f

You use item to select the information to fetch. You use URL to name the document you're interested in, or leave it off to get information on the document currently displayed in the window. You use index, map and form to add search keys to a URL before fetching it. index converts the value given to it into an indexed search. map accepts X Y pairs, and uses that to query the image that URL designates. form accepts a string of name value pairs, and turns them into a query of the form that URL designates. The value of these keywords is ignored if URL is not specified. FORM is not implemented yet.

stem is ignored and the information is returned in the result string if item is one of:

body
Returns the contents of the <body> section of the document. Not implemented yet.
head
Returns the contents of the <head> section of the document. This string will include the text of the string returned by title. Not implemented yet.
source
Returns the HTML source for the current document. This string is the text of the strings returned by head and body joined by appropriate sectioning directives.
title
Returns the title of the selected document.
stem is the name of a stemmed variable to hold the structured information returned if item is one of:
document
This returns all the information associated with a document, which includes everything on this page, and more.
images
This returns all the inlined images in the document as a list of links in the named stem.
inline
This returns a the complete information on an inlined image, loading the image over the net as required. The URL for the image must be provided as the value of the URL keyword. If used with a URL other than one returned by the fetch command, the results are not predictable.
links
This returns all the anchors in the document as a list of links in the named stem.
urllist
This returns all the URLs in the document as a list of links in the named stem. This list is the union of the lists returned by links and images.

Up to the commands, on to get or back to mui.
Mike W. Meyer